﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Data;
using MyPublisher.Administration.Commands;
using System.Windows.ApplicationFramework;
using System.Collections.ObjectModel;
using MyPublisher.Administration.Model;
using MyPublisher.Framework;
using MyPublisher.Administration.Views;

namespace MyPublisher.Administration.ViewModels
{
    public class FileViewModel : DocumentViewModel<FileDocument>
    {
        public FileViewModel(IView view, string name)
            : base(view, name)
        {
            this.InsertItems(App.EntityFactory.Files);
            this.SelectFirst();

            this.InsertView(new FileDetailViewModel(new FileContentsView(), "Documents"));
            this.SelectedView = this.Views[0];
        }
    }
}
